
#ifndef _MEMBER_BSHORTCUT_H_
#define _MEMBER_BSHORTCUT_H_

#include <BWidget>
#include <BAction>
#include <BShortcut>

#define shortcut_member(shortcut)	((member_BShortcut*)((BShortcut*)shortcut)->_ptr)

namespace BWE
{
	Key StrToKey(const char* cstr);
	const char* KeyToStr(Key key);

	class member_BShortcut
	{
	public:
		member_BShortcut(BShortcut* action);
		~member_BShortcut();

		bool fromText(const BString& text);

		BShortcut*		boss;
		BAction*		host;
		BWidget*		widget;
		BValue			value;
		BArray<Key>		keys;
		BString			text;
	};
}

#endif